package com.atguigu.tingshu.user.service;

import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.model.user.UserSubscribe;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import com.atguigu.tingshu.vo.user.UserPaidRecordVo;
import com.atguigu.tingshu.vo.user.UserSubscribeVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {

    UserInfoVo getUserInfoVoByUserId(Long userId);

    Map<Long, Integer> userIsPaidTrack(Long userId, Long albumId, List<Long> trackIdList);

    Boolean isPaidAlbum(Long userId, Long albumId);

    List<Long> findUserPaidTrackList(Long userId, Long albumId);

    void savePaidRecord(UserPaidRecordVo userPaidRecordVo);

    void userPayRecord(UserPaidRecordVo userPaidRecordVo);

    void updateVipExpireStatus();


    IPage<UserSubscribeVo> findUserSubscribePage(Page<UserSubscribeVo> subscribeVoPage, UserSubscribe userSubscribe);
}
